<div class="fields-group">
    <div class="form-group">
        <label class="col-sm-2 control-label">{{'日期选择'}}</label>
        <div class="col-sm-8" style="width: 390px">
            <div class="input-group input-group-sm">
                <div class="input-group-addon">
                    <i class="fa fa-calendar"></i>
                </div>
                <input class="form-control" type="text" id="test1" value="{{request()->input('dateTime')}}">
                <script src="/laydate/laydate.js"></script> <!-- 改成你的路径 -->
                <script>
                    //执行一个laydate实例
                    laydate.render({
                        elem: '#test1',
                        value: '{{date('Y-m-d', time())}}',
                        done: function (value) {
                            $route = '{{$route}}';
                            $href = $route+'?date='+value;
                            $('#submit').attr('href', $href);
                            //window.location = '{{url('daily-chart?dateTime=')}}' + value;
                        }
                    });
                </script>

            </div>
        </div>
    </div>
    <div class="btn-group pull-left">
        <a href="{{$route.'?date='.date('Y-m-d', time())}}" id="submit" target="_blank"
           class="btn btn-info btn-sm"><i class="fa fa-upload"></i>&nbsp;&nbsp;导出</a>
    </div>
    <div class="btn-group pull-left " style="margin-left: 10px;">
        <a href="{{$routeIndex}}?_pjax=%23pjax-container" class="btn btn-default btn-sm"><i class="fa fa-undo"></i>&nbsp;&nbsp;重置</a>
    </div>
</div>